<template>
    <el-menu
        default-active="/index"
        router
        unique-opened
        collapse-transition
        class="left-menu"
    >
        <el-menu-item index="/index">首页</el-menu-item>
        <el-menu-item index="/fundquery">
            <i class="el-icon-menu"></i>
            <span slot="title">基金查询</span>
        </el-menu-item>
        <el-menu-item index="/fundbuy">
            <i class="el-icon-document"></i>
            <span slot="title">基金申购</span>
        </el-menu-item>
        <el-menu-item index="/fundsell">
            <i class="el-icon-setting"></i>
            <span slot="title">基金赎回</span>
        </el-menu-item>
        <el-submenu index="5">
            <template slot="title">
                <i class="el-icon-location"></i>
                <span>订单查询</span>
            </template>
            <el-menu-item index="/tradingrecordquery" style="pading:0">交易记录查询</el-menu-item>
            <el-menu-item index="/rechargewithdrawalquery"  style="pading:0">充值提现查询</el-menu-item>
        </el-submenu>
        <el-menu-item index="/customeraccountopening">
            <i class="el-icon-setting"></i>
            <span slot="title">客户开户</span>
        </el-menu-item>
            <el-button type="primary" @click="onSubmit">立即清算</el-button>
            <br>
            <br>
            <el-button type="primary" @click="init">初始化</el-button>
    </el-menu>
</template>
<script>
import {reflash} from '@/api/order'
export default {
    name: 'Navigation',
    methods: {
       onSubmit(){
           reflash()
        //    console.log(this.form.credentialNumber);
          this.$message({
          message: '清算成功',
          type: 'success'
        });
    },
        init(){
        //    console.log(this.form.credentialNumber);
          this.$message({
          message: '清算成功',
          type: 'success'
        });
    },
    }
}
</script>
<style scoped>
.left-menu {
    /* background-color: #2d3a4b !important; */
    /* min-height: 720px; */
    height: 100%;
    max-width: 200px;
}
</style>